from lib.config.config import Config


class redisconfig:
    def __init__(self):
        config = Config()
        configNode = config.getnode()
        self.host = configNode.get("redis", "addr")
        self.port = configNode.get("redis", "port")
        self.db = configNode.get("redis", "db")
        self.password = configNode.get("redis", "password")